package com.lggry.extends6constructor;

public class Teacher extends People{
    private String skill;

    public Teacher(String name, char gender, String skill) {
        //子类构造器调用父类构造器的应用场景
        //可以把子类继承自父类这部分的数据也完成初始化赋值
        super(name,gender);
        this.skill = skill;
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }
}
